package cn.harry.modular.achievement.domain;

import cn.harry.common.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 专利申请表
 * @TableName achievement_patent_application
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="achievement_patent_application")
@Data
public class AchievementPatentApplication extends BaseEntity {

    /**
     * 封面
     */
    @Schema(description = "封面")
    private String cover;
    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;
    /**
     * 上传者
     */
    @Schema(description = "上传者")
    private String uploader;

    /**
     * 标题
     */
    @Schema(description = "标题")
    @TableField(condition = SqlCondition.LIKE)
    private String patentTitle;

    /**
     * 专利类型
     */
    @Schema(description = "专利类型")
    private String patentType;

    /**
     * 专利编号
     */
    @Schema(description = "专利编号")
    private String patentNumber;

    /**
     * 专利资源
     */
    @Schema(description = "专利资源")
    private String patentAttachment;
    /**
     * 下载次数
     */
    @Schema(description = "下载次数")
    private Integer downloadCount;

    /**
     * 状态 0 待审核 1 已审核 2 审核拒绝
     */
    @Schema(description = "状态 0 待审核 1 已审核 2 审核拒绝")
    private String state;

    /**
     * 文件内容
     */
    @Schema(description = "文件内容")
    private String content;
}